package com.kyk.web.feign;

import com.kyk.entity.User;
import org.springframework.stereotype.Component;

// 该类所有的方法都是降级方法
@Component
public class UserActionImpl implements UserAction {
    @Override
    public String user() {
        return "";
    }

    @Override
    public int add(int a, int b) {
        return 0;
    }

    @Override
    public String hello(String name) {
        return "服务降级: 你好: " + name;
    }

    @Override
    public User emp1(User emp) {
        return null;
    }

    @Override
    public User emp2(User emp) {
        return null;
    }

    @Override
    public User emp11(User emp) {
        return null;
    }

    @Override
    public User emp22(User emp) {
        return null;
    }
}